package com.zhijiaoyun.model;

/**
 * @author shisfish
 * @date 2017/6/6
 */
public class Banner extends ModifyModel {
	private static final long serialVersionUID = -6130805394199483692L;

	private Long bannerId;

    private String title;

    private String imageUrl;

    private String linkUrl;

    private Integer bannerType;
    
    public Banner() {
		super();
	}

	public Banner(String title, String imageUrl, String linkUrl, Integer bannerType, String createUser) {
		super();
		this.title = title;
		this.imageUrl = imageUrl;
		this.linkUrl = linkUrl;
		this.bannerType = bannerType == null ? 0 : bannerType;
		this.createUser = createUser;
	}

	public Long getBannerId() {
        return bannerId;
    }

    public void setBannerId(Long bannerId) {
        this.bannerId = bannerId;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title == null ? null : title.trim();
    }

    public String getImageUrl() {
        return imageUrl;
    }

    public void setImageUrl(String imageUrl) {
        this.imageUrl = imageUrl == null ? null : imageUrl.trim();
    }

    public String getLinkUrl() {
        return linkUrl;
    }

    public void setLinkUrl(String linkUrl) {
        this.linkUrl = linkUrl == null ? null : linkUrl.trim();
    }

	public Integer getBannerType() {
		return bannerType;
	}

	public void setBannerType(Integer bannerType) {
		this.bannerType = bannerType;
	}

	public static long getSerialversionuid() {
		return serialVersionUID;
	}

	@Override
	public String toString() {
		return "Banner [bannerId=" + bannerId + ", title=" + title + ", imageUrl=" + imageUrl + ", linkUrl=" + linkUrl
				+ ", bannerType=" + bannerType + "]";
	}
	

}